/**
 * 
 */
package profile.result;

/**
 * @author ductrung.tran
 *
 */
public class ParamResultItem {

	private int step;
	
	private long execTime;
	private long corbaTime;
	private long serverTime;
	
	public void setStep(int step) {
		this.step = step;
	}
	
	public int getStep() {
		return step;
	}
	
	public long getExecTime() {
		return execTime;
	}
	public void setExecTime(long execTime) {
		this.execTime = execTime;
	}
	public long getCorbaTime() {
		return corbaTime;
	}
	public void setCorbaTime(long corbaTime) {
		this.corbaTime = corbaTime;
	}
	public long getServerTime() {
		return serverTime;
	}
	public void setServerTime(long serverTime) {
		this.serverTime = serverTime;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof ParamResultItem)) {
			return false;
		}
		
		ParamResultItem other = (ParamResultItem) obj;
		
		return step == step && execTime == other.execTime && corbaTime == other.corbaTime && serverTime == other.serverTime;
	}
	
	@Override
	public int hashCode() {
		return 37*Long.valueOf(execTime).hashCode() + 17*Long.valueOf(corbaTime).hashCode() + 11*Long.valueOf(serverTime).hashCode() + step;
	}
	
}
